<?
if ($this->pages) 
	{
?>
<div class="pagination top"><?=$this->pages;?></div>
<?
    }

$numRows = sizeof($this->blogs);
if ($numRows) {
?>
<table width="100%" cellspacing="0" cellpadding="0" class="edit_block">
	<tr>
		<th class="first">Название</th>
		<th width="20%">Автор</th>
		<th width="1">&nbsp;</th>
		<th width="1" class="last">&nbsp;</th>
	</tr>
<?
    while (list(, $blog) = each($this->blogs)) {
        ?>
	  <tr>
		<td class="first title"><a
			href="<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'blogs', 'action' => 'out_articles', 'blog' => $blog->GetId()));?>"
			title="Статьи в блоге"><?=$blog->GetTitle();?></a></td>
		<td class="title"><?=$blog->GetUserName();?></td>			
		<td><a
			href="<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'blogs', 'action' => 'add_blog', 'blog' => $blog->GetId()));?>"
			title="редактировать"><img
			src="<?=_ROOT_URL;?>files/images/admin/edit_edit.gif" alt="edit"
			title="" width="30" height="11"></a></td>
		<td class="last"><a
			href="<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'blogs', 'action' => 'del_blog', 'blog' => $blog->GetId()));?>"
			title="Удалить блог и все записи в нём?" class="del"><img
			src="<?=_ROOT_URL;?>files/images/admin/edit_close.gif" alt="close"
			title="" width="9" height="11"></a></td>
	</tr>
<?
    }
    ?>
 </table>
<?
} else {
    ?>
	нет блогов
<?
}

    if ($this->pages) 
    {
?>
<div class="pagination"><?=$this->pages;?></div>
<?
    }
?>    
<div class="bt_area"><input type="button" class="bt" value="Добавить"
	onclick="window.location.href='<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'blogs', 'action' => 'add_blog'));?>';" />
</div>